@use "../mixins/bem" as *;
@use "../mixins/function" as *;

$border-color: #dcdfe6;

@include b(demoCode) {
  @include e(effect) {
    border: 1px solid $border-color;
    border-radius: 4px 4px 0 0;
    padding: 20px;
    overflow: auto;
  }

  @include e(button-group) {
    border: 1px solid $border-color;
    border-top: 0;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 0 0 4px 4px;
    .tk-icon {
      cursor: pointer;
      margin-left: 20px;
      color: #747578;
    }
  }

  @include e(language-vue__code) {
    padding-left: 32px;
  }

  @include e(line-numbers-wrapper) {
    border-color: $border-color;
    line-height: 1.4;
    padding-top: 11px;
    user-select: none;
    .line-number {
      color: #aaa;
      line-height: 1.4;
    }
  }

  @include e(float-control) {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid $border-color;
    height: 44px;
    box-sizing: border-box;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-top: -1px;
    color: var(--vp-c-text-1);
    cursor: pointer;
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    span {
      font-size: 14px;
      margin-left: 10px;
    }

    &:hover {
      color: getCssVar("theme-color");
    }
  }
}
